package visitor;

public final class RapportCommandes implements IVisitor {
	
	private StringBuffer result = new StringBuffer();

	@Override
	public void visit(Client c) {
		result.append("RapportCommandes visiting "+c.getName()+"\n");	
	}

	@Override
	public void visit(Commande o) {
		result.append("RapportCommandes visiting "+o.getName()+"\n");		
	}

	@Override
	public void visit(Ligne l) {
		result.append("RapportCommandes visiting "+l.getName()+"\n");				
	}
	
	@Override
	public void visit(GroupClient gc) {
		result.append("RapportCommandes visiting "+gc.getName()+"\n");						
	}

	@Override
	public void afficherCommandes() {
		System.out.println(result);
	}

	public StringBuffer getResult() {
		return result;
	}

	public void setResult(StringBuffer result) {
		this.result = result;
	}
}
